package com.ruoyi.project.good.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 商品转发对象 goods_forward_record
 * 
 * @author ruoyi
 * @date 2020-07-01
 */
public class GoodsForwardRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 转发记录id */
    private Long forwardId;

    /** 转发人id */
    @Excel(name = "转发人id")
    private Long userId;

    /** 转发入口名片id */
    @Excel(name = "转发入口名片id")
    private Long cardId;

    /** 转发商品id */
    @Excel(name = "转发商品id")
    private Long goodsId;

    /** 父级id（0表示第一次分享） */
    @Excel(name = "父级id", readConverterExp = "0=表示第一次分享")
    private Long parentId;

    /** 1删除 */
    @Excel(name = "1删除")
    private Integer isDel;

    public void setForwardId(Long forwardId) 
    {
        this.forwardId = forwardId;
    }

    public Long getForwardId() 
    {
        return forwardId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("forwardId", getForwardId())
            .append("userId", getUserId())
            .append("cardId", getCardId())
            .append("goodsId", getGoodsId())
            .append("parentId", getParentId())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
